package com.ddc.study.feature.main.project.detail;

import com.ddc.study.base.BasePresenter;
import com.ddc.study.base.BaseView;
import com.ddc.study.entity.Article;
import com.ddc.study.entity.MainData;

import androidx.annotation.IntRange;

/**
 * Created on 2018/8/18.
 *
 * @author lshun
 * @version 1.0
 */
public interface DetailContract {
    interface IModel {
    }

    interface IView extends BaseView {
        void loadDataSuccess(MainData<Article> data);

        void loadDataFailed(String msg);
    }

    abstract class IPresenter extends BasePresenter<IView> {
        abstract void loadData(@IntRange(from = 1) int page, int cid);
    }
}
